<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="common_header(title)">
    <meta charset="UTF-8">
    <title th:text="${title}">默认标题</title>
</head>
<body>
<div th:fragment="common_content(name,pwd)">
    <p th:text="${name}+'-'+${pwd}"></p>
</div>
</body>
</html>